home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000 #2
/
Ham Radio 2000 - Volume 2.iso
/
HAMV2
/
HF
/
DXH52ENG
/
TCP&TIPS.TXT
< prev
next >
Wrap
Text File
|
1997-01-04
|
12KB
|
316 lines
SOMETHING YOU WOULD HAVE NEVER DISCOVERED ALONE.
This is a document added to the 5.1 release of DXHUNTER.
The 5.1 release allows automatic connections/reconnections also via
TCP nodes, enabling very special auto login features, telnet
addressing and other.
If you have the luck to connect to an INTERNET TCP radio gateway node
with your TNC, you have the World Wide DX environment in your hands.
Maybe you've already experienced the connection to a DXCluster via a
radio TCP node with a connection through the INTERNET; best known
DXClusters reachable that way are IK5PWJ, NO4J, JE3YUS and many
others.
These packet clusters are often (not always) connected each other, so
it seems not necessary to reach'em directly.
But you may want to send a talk to a foreign friend (talks, when
enabled, won't work between far away nodes), or you may want to get DX
BULLETINS from the source (some DXCLUSTER lock the forwarding of
messages addressed to ALL, so the messages in KS9K are not the same as
the messages in T77T, of course); or better you could get DX spots
from the source, at certain times, when some DXes on 40 and 80,
spotted by far away hams are feasible for you also.
I won't tell you which TCP platforms to reach or which nodes you'll
have to surf to reach some interesting DX sites: you'll discover them
alone, in a few days, it's rather easy.
There are some problems in engaging a telnet session via a radio TCP
node automatically; first of all: login, password, then the timeout
which normally disconnects you after a certain amount of inactivity
time.
ALL THESE PROBLEMS HAVE BEEN SOLVED IN DXHUNTER 5.1.
The connection string may now include some extra special fields: let's
suppose that your radio INTERNET TCP node is named TCPINT and that it
accepts telnet sessions under the form "t host" (where host is the
host IP address nn.nn.nn.nn or the host name, such as ac4et.ampr.org);
in this case, the connection string will be simply:
C TCPINT#t ac4et.ampr.org#IK4VYX!Fab!C DXFLA
the "#" character identifies single connection commands while the "!"
character identifies single fields into the same connection command
(so IK4VYX!Fab! will answer automatically to the login:, password:
questions; of course you'll have to use your call and your name...).
Finally the C DXFLA will connect you to NO4J DXCluster.
Some TCP nodes just answer "connected to..." then if you want to see
their command prompt you have to send a dummy letter; if TCPINT falls
in this case, then the string becomes:
C TCPINT#N!t ac4et.ampr.org#IK4VYX!Fab!C DXFLA
a "N" dummy letter will be sent to TCPINT before the telnet command,
otherwise it will not be executed.
This feature can be used also for other useful purposes:
C TCPINT#t ac4et.ampr.org#IK4VYX!Fab!C DXFLA#SET/LOGIN!C
(the "" character, is the Ctrl-C, to switch to command mode).
the last command: SET/LOGIN will enable the login announcements (it
could be any other command), while C will produce a dummy "connected"
word (DXHUNTER needs a CONNECTED keyword between connection steps).
This procedure can be extended as desired:
...#SET/LOGIN!DI/N!SH/DX!...!C
TCP&TIPS.TXT page 1
Note: if you forget the last !C command, then DXHUNT will wait for a
CONNECTED keyword, resetting the connection after a certain time if
the CONNECTED word is not received.
Note: if the configuration string exceeds the 78 characters, you'll
not be able to edit it with F1; you'll have to set it from the CONFIG
program.
FIGHTING THE TIMEOUTS.
An antitimeout feature was already present in DXHUNTER 5.0.
It consisted in a simple, periodic (period adjustable), Carriage
Return; this was to fight some DXCLUSTERs'timeouts and it worked
properly.
This feature seemed not to work properly with TCP nodes; so a line has
been added at the bottom of COMMANDS.INI (the new parameter 21), where
you can set the command you want as a traffic simulation (a simple
blank or a di/n should work).
Start without antitimeout; if the antitimeout is needed, start with a
10 minutes period, if it doesn't work, progressively pass to 9
minutes, then 8, and so on.
The success of a connection strongly depends on the radio link
quality: if you use several nodes, far away each other, your
connection will probably last a few minutes.
Please, use this feature carefully, it could cause a significant
increase of traffic: try to set a command that holds a single line
answer by the cluster.
A special antitimeout command can also be used to periodically test
the link quality, and restore the link when necessary.
Example:
If you set a blank character as antitimeout, the DXCLUSTER will answer
with its prompt; some TCP nodes (not all) answer to a blank with a
"Huh?" string; so if you put the "Huh?" string in the LINK FAILURE
MSG. in CONFIG, you'll obtain a connection reset when the link is no
longer active with the DXCluster!
Do you want to become a DXHUNTER's advanced user now?
Read what follows and welcome into DXHUNTER's smart club!
DXHUNTER's TIPS AND TRICKS As you know, DXHUNTER holds a single
connection string.
This problem can be worked around and the solution combined with the
use of batch files, TIMER.EXE and WAIT.EXE (WAIT.EXE is a new included
program; usage: WAIT hh:mm; the program will wait till hh:mm, then
stop).
The following batch file may be used to connect to a stated DXCluster
(in this example, NO4J).
>NO4J.BAT
@echo off
cd DXHUNTER
del dxhunt50.cfg
copy no4j.cfg dxhunt50.cfg
TCP&TIPS.TXT page 2
REM MENU/A starts the program with in built automatic connection
MENU/A
Of course you'll have to create the NO4J.CFG file first, by starting
CONFIG.EXE, set the proper connection string to connect to NO4J, save
& exit with F10 then rename the obtained DXHUNT50.CFG file to
NO4J.CFG.
It's not enough... much more can be done:
The following batch file is used by me to connect to different
clusters, via TCP nodes at stated times for stated period..s, without
my presence, with in-built connections and disconnections!
>A_DX_DAY.BAT
@echo off
cd DXHUNTER
START:
REM Next, I want to connect to NO4J DXCluster
del dxhunt50.cfg
copy no4j.cfg dxhunt50.cfg
REM Now wait till noon, my local time
WAIT 12:00
REM Connect to NO4J and stay connected for 2 Hours
TIMER /M120
REM Next, I want to connect to KS9K DXCluster,
REM after staying disconnected for 2 hours
del dxhunt50.cfg
copy ks9k.cfg dxhunt50.cfg
WAIT 16:00
REM Connect to KS9K and stay connected for 1 Hour
TIMER /M60
....THE DAY IS LONG
....THE CLUSTERS ARE MANY
REM Repeat the cycle for tomorrow, and the days after...
GOTO START
Note that the WAIT program is required to change the cfg file between
TCP&TIPS.TXT page 3
sessions (With TIMER only, this is not possible).
Finally I'll teach you how to connect more than one cluster with a
single connection string, keeping all the connections under control!.
This is a little more complex:
here is a sample connection string which does the job...
|AC IR3BLG-1#CONPERM ON!C#...#|B!C IR3BLG-2#CONPERM ON!C#...
Warning: don't put spaces between the characters "|AC" at the string
beginning!.
In this sample I suppose to start from IR3BLG to reach two different
clusters, the first will be connected through IR3BLG-1 on stream A,
the second through IR3BLG-2 on stream B (this sample could be extended
to stream C, D and so on; note that it's a good rule to put a SSID
(-1, -2) when you execute multiple connections via the same node.
The CONPERM ON command will cause a "LINK OUT OF ORDER" message when
one of the connected streams will loose the connection at the lowest
level; if you add the field !LINK OUT OF ORDER to the UNSUCCESS MSG.
string in CONFIG, you'll obtain an automatic connection reset when one
of the connection drops; this combined with the other unsuccess
messages (RECONNECTED TO and so on) causes all the connection to be
reset and rebuilt when something goes wrong in any stream, at any
level.
It's not enough: the above example works only if you change the
disconnection command in COMMANDS.INI (command 4) from D to:
|A#CONPERM OFF#D#D#|B#CONPERM OFF#D#D
The double D is to force an immediate disconnection on the selected
stream and it's preceeded by CONPERM OFF otherwise that stream would
never disconnect.
If both the connections in the above sample are timed out, then you
have also to change the command 21 in COMMANDS.INI to |B #|A (note:
put a space character after the A), so a dummy space command will be
sent on both the streams avoiding time out; the order B>A will set the
stream A as the I/O current stream on TNC.
A big disadvantage in this process is that if you use 3 connections
and just 1 of them goes wrong, DXHUNTER will reset and rebuild all the
connections cause it has just one connection string and generally it
can't understand where the fault message has been generated; that's
why I suggest to use this trick on not more than 2 streams, or you'll
only waste time and cause traffic.
When you are close to the PC it might be more convenient for you to
disable the automatic reconnection (F2) and fix the problems manually:
if a reconnected keyword is received DXHUNTER restarts the connection
from the very beginning; it could take you a few seconds to reconnect
manually if the link dropped at one of the last nodes.
If you reach your local DXCLUSTER directly then you can connect it
permanently (with CONPERM ON) let's say on stream B, then connect
DXHUNTER to another DXCLUSTER on stream A (with CONPERM OFF) and have
the connection on stream A under control by DXHUNTER, on stream B by
the TNC; in this case the "!LINK OUT OF ORDER" field must not be added
to unsuccess string.
As a general good rule, if you use more than one stream, if, let's
say, the stream A is destined to DXHUNTER, youll'have to add the
stream identity to some commands in COMMANDS.INI: the command 2 (|AC)
the command 4 (|AD) the command 21 |A (with a space after the A), and
TCP&TIPS.TXT page 4
also the connection string will have to start with |AC NODE (no spaces
between the characters "|AC".
Some TNCs use numbers to identify streams instead of letters, in these
cases |A becomes |1 and so on...
Note that the 5.1 version accepts the special characters "#" (for
separation) and "+" (for 1 second pause) both in the connection string
and in COMMAND.INI's command 4 (disconnection) and 21 (antitimeout);
this was not implemented in 5.0.
If you have fantasy, once you learn these simple rules, probably you
can solve any connection problem, cause DXHUNTER is very flexible.
So now what do you think about the DXHUNTER?
THE DXHUNTER: THE SOFT WAY OF HUNTING!!!.
TCP&TIPS.TXT page 5